package com.hongdee.insurance.commission.service;

import com.hongdee.insurance.commission.entity.TInsuranceCommission;

import java.util.List;
import java.util.Map;

public interface ITCommissionNewService {

    /**
     * 1、先根据提交的内容生成佣金费率实体
     * 2、检测每一个佣金费率实体是否有时间重叠
     * 3、如无重叠 并且未抛出异常则进行添加
     * @param data
     * @param carCompanyList
     * @param uid
     * @throws Exception
     */
    public void saveInsuranceCommission(Map<String,Object> data, List<String> carCompanyList, String uid) throws Exception;

    /**
     * 分页查询
     * @param uid
     * @param start
     * @param limit
     * @param data
     * @return
     * @throws Exception
     */
    public Map page(String uid, String start, String limit, Map data) throws Exception;

    /**
     * 更新佣金
     * @param insuranceCommission
     * @param uid
     * @throws Exception
     */
    public void updateInsuranceCommission(TInsuranceCommission insuranceCommission, String uid) throws Exception;

    /**
     * 检测每一个实体是否有时间重叠
     * @param tInsuranceCommissions
     * @throws Exception
     */
    public void hisDateCompare(List<TInsuranceCommission> tInsuranceCommissions) throws Exception;
}
